<template>
    <el-input type="textarea" v-model="content" ></el-input>
</template>

<script>
    export default {
        name: "multiple",
        props: {
            pData: Object
        },
        data() {
            return {
                content: ""
            }
        },
        watch: {
            content(val) {
                this.dataEcho(val);
            }
        },
        mounted() {
            this.init();
        },
        methods: {
            init() {
                this.content = this.pData.zhi;
            },
            dataEcho(val) {
                let nameEn = this.pData.nameEn;
                let clickName = this.pData.onclickName;
                const data = {};
                data[nameEn] = val;
                this.$emit(clickName, data)
            },
        }
    }
</script>

<style scoped>

</style>
